//
//  StepsDataModels.swift
//  TimeBoat
//
//  Created by bo wang on 2022/8/26.
//  Copyright © 2022 Time Boat. All rights reserved.
//

import UIKit
import YYModel

@objc class StepsDataUnit: ChartsDataUnit {
    @objc var calorie: Double = 0
    @objc var distance: Double = 0
    @objc var stepCount: Int = 0
}

@objc class StepsYearlyDataUnit: ChartsYearDataUnit {
    @objc var totalCalorie: Double = 0
    @objc var totalDistance: Double = 0
    @objc var totalStepCount: Int = 0
}

@objc class StepsNormalDataModel: ChartsDataModel {
    @objc var list: [StepsDataUnit] = []
    @objc static func modelContainerPropertyGenericClass() -> [String: Any]? {[
        "list": StepsDataUnit.self
    ]}
}

@objc class StepsYearlyDataModel: ChartsDataModel {
    @objc var list: [StepsYearlyDataUnit] = []
    @objc static func modelContainerPropertyGenericClass() -> [String: Any]? {[
        "list": StepsYearlyDataUnit.self
    ]}
}
